<% include ../header.ejs%>
    <% include ../nav.ejs%>
        <div class="container">
            <div class="row">
                <div class="col-md-3">
                    <% include ../sidebar.ejs%>
                </div>
                <div class="col-md-9">
                    <table class="table table-hover">
                        <tr>
                            <th>id</th>
                            <th>标题</th>
                            <th>所属栏目</th>
                            <th>操作</th>
                        </tr>
                        <% for(var i=0;i<articleList.length;i++){
                                var article = articleList[i];
                            %>
                            <tr>
                                <td>
                                    <%=article.aid%>
                                </td>
                                <td>
                                    <%=article.title%>
                                </td>
                                <td>
                                    <%=article.cname%>
                                </td>
                                <td>
                                    <a href="/category/edit/" class="btn btn-success btn-xs">编辑</a>
                                    <a href="#" onclick="if(confirm('确定删除么',true)){location.href='/category/del/'}" class="btn btn-danger btn-xs">删除</a>
                                </td>
                            </tr>
                            <%}%>
                    </table>
                </div>
            </div>
        </div>
        <% include ../footer.ejs%>
